
//------------------------------------------------------------------------------
 
using System;
using System.ComponentModel.DataAnnotations;
namespace Apps.Models
{

    public partial class V_PUB_SCHEMEModel : Virtual_V_PUB_SCHEMEModel
    {
        //[Display(Name = "编制人")]
        //public string COMPILE_USERName { get; set; }
        //public DateTime? PLAN_DATE { get; set; }

        //[Display(Name = "物资调运计划")]
        //public virtual string PLANID { get; set; }

        //[Display(Name = "物资调运计划名称")]
        //public virtual string PLANNAME { get; set; }

        //[Display(Name = "物资名称")]
        //public virtual string MATERIEL_NAME { get; set; }
        //public string BATCH_CODE { get; set; }
    }
    public class Virtual_V_PUB_SCHEMEModel
	{
		[Display(Name = "采样方案配置编号")]
		public virtual string SCHEME_ID { get; set; }
		[Display(Name = "生效日期"), Required]
		public virtual DateTime? EFFECTIVE_DATE { get; set; }
        public virtual string SCHEME_TYPE { get; set; }
        [Display(Name = "采样选样方案"),Required]
		//public virtual string SCHEME_TYPE_STR { get; set; }
        public virtual string SCHEME_TYPE_STR { get; set; }

        [Display(Name = "布点方式"), Required]
		public virtual Nullable<int> LAYOUT_TYPE { get; set; }
        [Display(Name = "预计车数"), RangeAttribute(0, 9999)]/*, RegularExpression(@"^[0-9]+(.[0-9]{1,3})?$", ErrorMessage = "预计车数必须大于等于0.")*/
        public virtual int? CAR_COUNT { get; set; }
        [Display(Name = "预计来煤量"), RangeAttribute(0, 99999)]/*, RegularExpression(@"^[0-9]+(.[0-9]{1,3})?$", ErrorMessage = "预计来煤量必须大于等于0.")]*/
        public virtual decimal? COAL_TOTAL { get; set; }
        [Display(Name = "总采样点数"), RangeAttribute(1, 9999), Required]/*, RegularExpression(@"^[0-9]+(.[0-9]{1,3})?$", ErrorMessage = "总采样点数必须大于等于0.")]*/
		public virtual int? POINT_SUM { get; set; }
        [RangeAttribute(1, 99)]
        [Display(Name = "每车采样点数"), Required]/*, RegularExpression(@"^[0-9]+(.[0-9]{1,3})?$", ErrorMessage = "每车采样点数必须大于等于0.")]*/
        public virtual int? POINT_COUNT { get; set; }
		[Display(Name = "方案说明"),Required]
		public virtual string SCHEME_MARK { get; set; }
		[Display(Name = "发布状态")]
		public virtual Nullable<int> STATUS { get; set; }
		[Display(Name = "编制人ID")]
		public virtual string COMPILE_USER { get; set; }
		[Display(Name = "编制时间")]
		public virtual System.DateTime COMPILE_DATE { get; set; }
        [Display(Name = "指定采样机组采样")]
        public virtual string SAMPLE_MACHINE_GROUP_STR { get; set; }
        public virtual Nullable<int> SAMPLE_MACHINE_GROUP { get; set; }

        [Display(Name = "编制人")]
        public virtual string USERNAME { get; set; }
        [Display(Name = "批次编码")]
        public string BATCH_CODE { get; set; }
    }
}
